<style>
.layui-input-block{
margin-left:120px;
}
</style>
<!-- start form -->
<form class="layui-form" action="" id="orderEditForm">
	<div class="layui-row" style="margin-top:10px;">
		<input class="layui-input" type="hidden" th:value="${obj.id}" id="id" name="id">
		<input class="layui-input" type="hidden" th:value="${obj.companyId}" id="companyId" name="companyId">
		<input class="layui-input" type="hidden" th:value="${obj.supplierCustomerId} "id="supplierCustomerId" name="supplierCustomerId">
	      <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
	          <label class="layui-form-label" style="width:120px;">结算币种：</label>
	          <div class="layui-input-block" style="width:200px;">
	              <select  name="currency" id="currency" lay-verify="required" disabled>
	                  <option th:each="ec:${currencyType}" th:value="${ec.id}" th:text="${ec.name}" th:selected="${ec.id}==${obj.currency}"></option>
	              </select>
	          </div>
	      </div>
	      <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
	          <label class="layui-form-label" style="width:120px;">结算方式：</label>
	          <div class="layui-input-block" style="width:200px;">
				 <select  id="statementType" name="type" lay-verify="required" disabled>
	                  <option th:each="ec:${statementType}" th:value="${ec.code}" th:text="${ec.value}" th:selected="${ec.code}==${obj.type}"></option>
	              </select>
	          </div>
	      </div>
	      </div>
	<div class="layui-row" style="margin-top:10px;">
	      <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
	          <label class="layui-form-label" style="width:120px;">周结天数：</label>
	          <div class="layui-input-block" style="width:200px;">
	              <input type="text" class="layui-input" readonly name="dates" th:value="${obj.dates}" lay-verify="required" >
	          </div>
	      </div>
	      <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
	          <label class="layui-form-label" style="width:120px;">对账开始时间：</label>
	          <div class="layui-input-block" style="width:200px;">
	              <input type="text" class="layui-input" name="star" readonly th:value="${#dates.format(obj.star,'yyyy-MM-dd')}" placeholder="yyyy-mm-dd" lay-verify="required/date" >
	          </div>
	      </div>
	      </div>
	<div class="layui-row" style="margin-top:10px;">
	      <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
	          <label class="layui-form-label" style="width:120px;">对账结束时间：</label>
	          <div class="layui-input-block" style="width:200px;">
	             <input type="text" class="layui-input" name="end" readonly th:value="${#dates.format(obj.end,'yyyy-MM-dd')}" placeholder="yyyy-mm-dd" lay-verify="required/date" >
	          </div>
	      </div>
	      
	      <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
	          <label class="layui-form-label" style="width:120px;">是否默认结算方式：</label>
	          <div class="layui-input-block" style="width:200px;">
	             <select  id="isDefault" name="isDefault" lay-verify="required" disabled>
	                  <option th:value="${obj.isDefault}" th:text="${obj.isDefault}==0?否:是"></option>
	                  <option th:value="${obj.isDefault}==0?1:0" th:text="${obj.isDefault}==0?是:否"></option>
	              </select>
	          </div>
	      </div>
	      </div>
	<div class="layui-row" style="margin-top:10px;">
	      <div class="layui-col-xs6 layui-col-sm6 layui-col-md6">
	          <label class="layui-form-label" style="width:120px;">说明：</label>
	          <div class="layui-input-block" style="width:200px;">
	              <textarea class="layui-textarea"   style="min-height: 50px;" name="remark" readonly th:text="${obj.remark}"></textarea>
	          </div>
	      </div>
   </div>
   <div class="layui-row" style="margin-top:30px;" >
	    <div class="layui-col-xs12 layui-col-sm12 layui-col-md12" style="text-align:center;">
	      	<button type="button" class="layui-btn" id="closeBtn">关闭</button>
	    </div>
  </div>
</form>
<!-- end form -->
<script>
layui.use('form',function() {
	var form = layui.form;
	form.render();
	$("#closeBtn").click(function() {
		layer.closeAll();
	});
});
</script>